import request from '@/utils/request'



export function add(data) {
  return request({
    url: 'api/specialty/create',
    method: 'post',
    data
  })
}

export function del(id) {
  return request({
    url: 'api/specialty/del/'+ id,
    method: 'post'
  })
}

export function tree(params) {
  return request({
    url: 'api/specialty/tree',
    method: 'get',
    params
  })
}

